package com.hsmw.api.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hsmw.api.vo.DriverRegisterPageVO;
import com.hsmw.api.vo.RetailerOrForemanInfoVO;
import com.hsmw.api.vo.TaskingOrderVO;
import com.hsmw.common.base.BaseMapper;
import com.hsmw.domain.HsmwUser;
import com.hsmw.domain.vo.DriverDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author hongfei
 */
@Repository
public interface HsmwUserMapper extends BaseMapper<HsmwUser> {

	IPage<HsmwUser> selectPageVo(IPage<HsmwUser> page, @Param("name") String name, @Param("username") String username);

	IPage<DriverRegisterPageVO> getDriverRegisterPage(IPage page, @Param("username") String username, @Param("isDriver") Boolean isDriver);


    List<String> queryRecentsAddresslist(HashMap param);

    void removeItemInfoById(HashMap param);

    void removeItemInfoByItemId(HashMap param);

    boolean updateUserTypeByUserId(@Param("userId")String userId, @Param("type")String type);

    void updateVehicleIdAndWorkStatus(String id, String changingCars);

    List<RetailerOrForemanInfoVO> getRetailerList(HashMap param);
    List<RetailerOrForemanInfoVO> getForemanList(HashMap param);

    List<DriverDetailVO> findDriverInfo(HashMap param);

    List<HsmwUser> itme_user_list();
}
